/*
 * Create Author  : jinpeng.chen
 * Create Date    : 2018-10-16
 * Project        : designpattern-learn
 * File Name      : PrimaryMemberStrategy.java
 *
 * Copyright (c) 2010-2018 by 18Birdies, LLC.
 * All Rights Reserved.
 *
 */
package com.charles.designpattern.strategy;

import org.springframework.stereotype.Component;

/**
 * 功能描述:  <p>
 *
 * @author : jinpeng.chen <p>
 * @version 1.0 2018-10-16
 * @since designpattern-learn 1.0
 */
@Component
public class IntermediateMemberStrategy implements MemberStrategy {

  @Override
  public double calPrice(final double originPrice) {
    return originPrice * 0.9;
  }

  @Override
  public MemberLevel getMemberLevel() {
    return MemberLevel.INTERMEDIATE;
  }

}
